package com.pwc.conversionTool.task;

import java.util.ArrayList;
import java.util.List;

public class DataAdapter {
	
	
	private List<String[]> dataList=null;
	
	
	public DataAdapter(List<String[]> dataList) {
		super();
		this.dataList = dataList;
	}
	
	
	public  String[] getHeader()
	{
		return  dataList.get(0);
	}
	
	public  List<String[]> getContent()
	{
		if(dataList.size()>1)
		{
			List<String[]> returnList=new ArrayList<String[]>(dataList);
			 returnList .remove(0);
			 return returnList;
		}else {
			return null;
		}
	}
	
	
	public List<String[]> getDataList() {
		return dataList;
	}
	
	public void setDataList(List<String[]> dataList) {
		this.dataList = dataList;
	}

	
	
}
